import { ajax } from '../http.js';

const findV2ByUserIdUrl = '/authc/user_qualification/v2/find_by_user_id';
const discernCharterUrl = '/authc/user_qualification/v2/discern_charter';
const personalQualificationUrl = '/authc/user_qualification/v2/update_personal_qualification';


const findV2ByUserId = (data, success, fail) => { // 根据UserID查询资质信息
  ajax({
    url: findV2ByUserIdUrl,
    data: data,
    success: success,
    fail: fail
  });
};

const discernCharter = (data, success, fail) => {  // 营业执照识别
  ajax({
    url: discernCharterUrl,
    data: data,
    success: success,
    fail: fail
  });
};

const personalQualification = (data, success, fail) => {  // 个人方式资质补充
  ajax({
    url: personalQualificationUrl,
    data: data,
    success: success,
    fail: fail
  });
};

export {
  findV2ByUserId,
  discernCharter,
  personalQualification
}